<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" />
<head>
<meta name="keywords" content="报考,报考系统,网上报考" />
<meta name="description" content="网上报考系统" />
<title>网上报考系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="__ROOT__/css/style.css" />
<link rel="stylesheet" type="text/css" href="__ROOT__/css/skin.css" />
<script type="text/javascript" src="__ROOT__/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo U('Home-js/url');?>"></script>
</head>
<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="__ROOT__/images/admin_login/mail_leftbg.gif"><img src="__ROOT__/images/admin_login/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="__ROOT__/images/admin_login/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">管理界面</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="__ROOT__/images/admin_login/mail_rightbg.gif"><img src="__ROOT__/images/admin_login/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="__ROOT__/images/admin_login/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
        
<script type="text/javascript">
    $(function(){
        $('#old_pwd').focus();
        $('#tijiao').click(function(){
            var old_pwd=$('#old_pwd').val();
            var new_pwd=$('#new_pwd').val();
            var new_pwd1=$('#new_pwd1').val();
            if(check(old_pwd,new_pwd,new_pwd1)){
                $('#pop').load("<?php echo U('sysmanger/save_edit_pwd');?>",{'old_pwd':old_pwd,'new_pwd':new_pwd});
            }
        });


        function check(old_pwd,new_pwd,new_pwd1){
            if(old_pwd==''){
                $('#pop').html('<font color="red">原始密码不能为空！请填写原密码！</font>');
                $('#old_pwd').focus();
                return false;
            }
            if(new_pwd==''){
                $('#pop').html('<font color="red">新密码不能为空！请填写新密码！</font>');
                $('#new_pwd').focus();
                return false;
            }
            if(new_pwd!=new_pwd1){
                $('#pop').html('<font color="red">新密码两次输入不一致！请重新输入！</font>');
                $('#new_pwd').val('');
                $('#new_pwd1').val('');
                $('#new_pwd').focus();
                return false;
            }
            if(old_pwd==new_pwd){
                $('#pop').html('<font color="red">新密码与旧密码一致，无需修改密码！</font>');
                $('#old_pwd').focus();
                $('#new_pwd').val('');
                $('#new_pwd1').val('');
                return false;
            }
            return true;
        }



        $('#pop').ajaxStart(function(){
            $('#pop').html('<font color="red">数据处理中...请稍后...</font>');
        });
    });
</script>
<div style="margin-top: 30px;margin-left: 20px;">
    <b>修改管理密码：</b>
    <br><a id="pop"></a><br>
　　原密码：<input type="password" class="input_border" name="old_pwd" id="old_pwd" value="" size="15" maxlength="20" /><br>
　　新密码：<input type="password" class="input_border" name="new_pwd" id="new_pwd" value="" size="15" maxlength="20" />(最长20位)<br>
确认新密码：<input type="password" class="input_border" name="new_pwd1" id="new_pwd1" value="" size="15" maxlength="20" /><br>
    <br>
    <img src="__ROOT__/images/ok.gif" border="0" style="cursor: pointer;margin-left: 100px;" id="tijiao" />

</div>


<div class="banquan">
        <br />
        <br />
    Copyright&nbsp;&reg;&nbsp;2010-2011&nbsp;<a href="http://www.cn-024.cn" target="_blank">沈阳枫叶网络工作室</a> ALL RIGHTS RESERVED
    </div>

    </td>
    <td background="__ROOT__/images/admin_login/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="__ROOT__/images/admin_login/mail_leftbg.gif"><img src="__ROOT__/images/admin_login/buttom_left2.gif" width="17" height="17" /></td>
    <td background="__ROOT__/images/admin_login/buttom_bgs.gif"><img src="__ROOT__/images/admin_login/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="__ROOT__/images/admin_login/mail_rightbg.gif"><img src="__ROOT__/images/admin_login/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>